import request from '@/utils/request'

// 查询卓悦设备列表
export function listImage(query) {
  return request({
    url: '/system/deviceZY/list',
    method: 'get',
    params: query
  })
}

// 查询卓悦设备详细
export function getImage(id) {
  return request({
    url: '/system/deviceZY/' + id,
    method: 'get'
  })
}

// 新增卓悦设备
export function addImage(data) {
  return request({
    url: '/system/deviceZY',
    method: 'post',
    data: data
  })
}

// 修改卓悦设备
export function updateImage(data) {
  return request({
    url: '/system/deviceZY',
    method: 'put',
    data: data
  })
}

// 删除卓悦设备
export function delImage(id,num) {
  return request({
    url: '/system/deviceZY/'+ id,
    method: 'delete'
  })
}



// 导出卓悦设备
export function exportImage(query) {
  return request({
    url: '/system/deviceZY/export',
    method: 'get',
    params: query
  })
}
